\documentclass[b5paper,twoside]{ctexrep} %%[landscape,noframe,draft][fontset=fandol,UTF8]
%% \usepackage{makeidx,fancyvrb,verbatim,pdfpages} % 於宣告區
%% \pagestyle{empty}                  % 完稿時用
%% \makeindex

\setCJKfamilyfont{stfangsong}{STFangSong.ttf}
% \newcommand{\fangsong}{\CJKfamily{stfangsong}}
\setCJKfamilyfont{sfjxingkai}{方正魏碑简体.ttf}
\newcommand{\xingkai}{\CJKfamily{sfjxingkai}}
% \setCJKfamilyfont{fangzhenglishu}{方正隶书简体.ttf}
\setCJKfamilyfont{fangzhenghuali}{方正华隶简体.ttf}
% \newcommand{\lishu}{\CJKfamily{fangzhenglishu}}
\newcommand{\lishu}{\CJKfamily{fangzhenghuali}}
\setCJKfamilyfont{fangzhenglibian}{方正隶变繁体.ttf}
\newcommand{\xlishu}{\CJKfamily{fangzhenglibian}}

\setCJKmonofont{方正粗宋简体.ttf} % texttt，%

\usepackage{wallpaper}
\ThisULCornerWallPaper{1}{竹.jpg}

\usepackage{geometry}
\newgeometry{
  top=50pt, bottom=55pt, left=66pt, right=66pt,
    headsep=10pt,
}
\savegeometry{mdGeo}
\loadgeometry{mdGeo}


% \usepackage{titlesec}
% \titlespacing*{\section}{0pt}{9pt}{0pt}
% \titlespacing*{\chapter}{0pt}{0pt}{-16pt}

%% \renewcommand{\chaptermark}[1]{\markboth{#1}{}}

\newcommand{\pageCN}{第\zhnumber{\thepage}页}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancypagestyle{plain}{ % first page style
    \fancyhf{}
    \cfoot{
      {\large\lishu 北航明德养生社晨读本 · \ifnum\value{page}>0 \pageCN\else {己亥丁卯版}\fi}
    }
    \renewcommand{\headrulewidth}{0pt}
}
% 从第二页开始的style
\fancyhf{}
% \chead{\large\lishu\leftmark}  %\lishu 北航明德养生社\qquad 晨读本
\fancyhead[LE]{\large\lishu\pageCN \ \hrulefill \  \rightmark}
\fancyhead[RO]{\large\lishu\rightmark \ \hrulefill \ \pageCN}
\cfoot{\large\lishu 北航明德养生社晨读本 · \leftmark} %{\normalsize\fangsong 「戊戌壬戌版」}
\renewcommand{\headrulewidth}{0bp} % 页眉线宽度




\ctexset{
  autoindent = 0pt,
  chapter = {
    numbering = false, % 标题不显示编号
    titleformat = \centering\Huge, % 小四号字
    format = \xlishu,
    beforeskip = 15pt,
    afterskip = 15pt,
    fixskip = true
  },
  section = {
    numbering = false, % 标题不显示编号
    titleformat = \LARGE,
    format = \texttt,
    afterskip = 10pt,
    fixskip = true
  }
}





\title{晨讀功課本}
\author{北航明德養生社}
\setCJKmainfont{AdobeSongStd-Light.otf}
\begin{document}
\fontsize{48pt}{60pt}\selectfont   %更改{字型}{大小}及間距  
\begin{titlepage}
  % 第二个()里的参数表示左移35pt，下移55pt
  \hfill
  \raisebox{-2pt}[0pt][0pt]{
  }
  \vskip 95bp
  \begin{center}
    {\xlishu
    \qquad\qquad 晨\\
    \qquad\qquad 读\\
    \qquad\qquad 功\\
    \qquad\qquad 课\\
    \qquad\qquad 本\\
    }
    \vspace*{\stretch{4}}
    % 第二个()里的参数表示左移35pt，下移55pt
    \begin{picture}(0,0)(35,-55)
      \includegraphics[width=90pt]{logo-light.pdf}
    \end{picture}
    \vskip 20bp
    \vspace*{\stretch{3}}
    \vskip 60bp
    
  \end{center}
\end{titlepage}

\fontsize{15pt}{15pt}\selectfont   %更改{字型}{大小}及間距  
\tableofcontents

\setcounter{page}{0}
\fontsize{16pt}{18pt}\selectfont   %更改{字型}{大小}及間距 

\include{content}
\end{document}
